<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"
        name="viewport">
  <title>浩然金融中心管理平台</title>
  <#include "/common/tablib.html">
  <style type="text/css">
    body {
      margin-top: 0px;
    }
  </style>
</head>
<body>
<div id="tabs">
  <ul>
    <li class="tabTag open"><a href="#tabs-1">机构详细信息</a></li>
    <li class="tabTag"><a href="#tabs-2">机构员工</a></li>
    <li>
      <div class="h-btn-group">
        <button class="btn btn-primary" id="return-btn" onclick="returnIndex()"><i class="fa fa-mail-reply">返回</i>
        </button>
      </div>
    </li>
  </ul>
  <div id="tabs-1">
    <iframe frameborder=0 height="100%" scrolling=yes
            scrolling=auto src="/securityOrg/to-form?operation=edit&orgId=${orgId!}&openType=tab" width="100%"></iframe>
  </div>
  <div id="tabs-2">
    <iframe frameborder=0 height="100%" scrolling=yes scrolling=auto src="" width="100%"></iframe>
  </div>
</div>
<script type="text/javascript">
    (function () {
        $("#tabs").tabs();
        var h = $(window).height();
        $("iframe").css("height", h - 80);
        $(".tabTag").click(function () {
            var num = $(this).index();
            var oid = $(this).attr("class");
            //判断是否存在自己指定的id，没有则插入id，并根据num打开相应的页面
            if ($(this).hasClass("open") == false) {
                $(this).addClass("open");
                switch (num) {
                    case 1 :
                        $("#tabs-2 iframe").attr("src", "/securityOrgUser/query?orgId=${orgId!}");
                        break;
                }
            }
        });
    })();
</script>
<script type="text/javascript">
    function returnIndex() {
        window.location.href = "/securityOrg/query";
    }
</script>
</body>
</html>
